import React, { useState } from "react";


// 用户组件创建的时候执行
export const useCreate = (props:()=>void)=>{
  const [create,setCreate] = useState(false);
  if(!create){
    props();
    setCreate(true);
  }
}